package com.wjc.train.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.DailyTrainCarriageQueryReq;
import com.wjc.train.business.req.DailyTrainCarriageSaveReq;
import com.wjc.train.business.resp.DailyTrainCarriageQueryResp;

import java.util.Date;

/**
 * <p>
 * 每日车厢表 服务类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-08
 */
public interface IDailyTrainCarriageService  {

  /**
     * 保存或修改
     * @param dailytraincarriageSaveReq
     */
    void save(DailyTrainCarriageSaveReq dailytraincarriageSaveReq);

    /**
     * 分页查询
     * @param page
     * @param dailytraincarriageQueryReq
     * @return
     */
    IPage<DailyTrainCarriageQueryResp> queryList(IPage<DailyTrainCarriageQueryResp> page, DailyTrainCarriageQueryReq dailytraincarriageQueryReq);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

  /**
   * 生成每日车厢信息
   */
  void genDaily(Date date, String trainCode);
}
